//
//  TYExceptionHandler.h
//  TYExceptionHandler
//
//  Created by 常彪 on 16/1/8.
//  Copyright © 2016年 0xcb. All rights reserved.
//

//异常捕获的函数
//NSUncaughtExceptionHandler

//NSGetUncaughtExceptionHandler();
//NSSetUncaughtExceptionHandler()

#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface TYExceptionHandler : NSObject
@property (nullable,copy,nonatomic) NSString * viewControllerName;
@property (nullable,copy,nonatomic) NSString * targetName;
@property (nullable,copy,nonatomic) NSString * portName;
@property (nullable,copy,nonatomic) id portRequest;
@property (nullable,copy,nonatomic) id portData;
@property (nullable,copy,nonatomic) NSArray *_Nullable(^extensionMsg)(void);
//开始捕获并且处理异常
+ (void)startExceptionHandler;
+ (instancetype)instance;
- (NSData *)checkErr;
@end
NS_ASSUME_NONNULL_END









